#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

class A {
public :
	A(int aa = 1) 
		:_a(aa)
	{
		cout << "A(int aa = 1) " << endl;
	}
	void Print() {
		cout << _a << endl;
	}
	~A() {
		cout << "~A()" << endl;
	}
private :
	int _a;
};
int main() {
	A* a = new A(5);
	a->Print();
	
	delete a;


	return 0;
}